import request from '@/utils/requestcore'
//分页条件查询登录凭证信息
export function listWebSite(query) {
  return request({
    url: '/api/website_info/listWebSite',
    method: 'post',
    data:query//请求体必须使用data
  })
}

export function getWebSite(id) {
  return request({
    url: '/api/website_info/getWebSite',
    method: 'get',
    params: { id }
  })
}

export function delWebSite(id) {
  return request({
    url: `/api/website_info/delWebSite/${id}`,  //必须用 `这个符号
    method: 'delete',
  })
}


export function addWebSite(data) {
  return request({
    url: '/api/website_info/addWebSite',
    method: 'post',
    data
  })
}


//=============================

export function listWebSiteItem(query) {
  return request({
    url: '/api/website_info/listWebSiteItem',
    method: 'post',
    data:query//请求体必须使用data
  })
}

export function getWebSiteItem(id) {
  return request({
    url: '/api/website_info/getWebSiteItem',
    method: 'get',
    params: { id }
  })
}

export function delWebSiteItem(id) {
  return request({
    url: `/api/website_info/delWebSiteItem/${id}`,  //必须用 `这个符号
    method: 'delete',
  })
}


export function addWebSiteItem(data) {
  return request({
    url: '/api/website_info/addWebSiteItem',
    method: 'post',
    data
  })
}
